package com.qf.service.impl;

import com.qf.dao.MyProductsDao;
import com.qf.dao.ProductsDao;
import com.qf.dao.impl.MyProductsDaoImpl;
import com.qf.dao.impl.ProductsDaoImpl;
import com.qf.entity.Products;
import com.qf.service.MyProductsService;
import com.qf.service.ProductsService;

import java.util.List;

public class ProductsServiceImpl implements ProductsService {

private ProductsDao dao = new ProductsDaoImpl();

    @Override
    public List<Products> findAllPro() {
        return dao.selectProAll();
    }

    @Override
    public Products findByid(int id) {
        return dao.selectByID(id);
    }

}
